<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: shanpengfei
  Date: 2019/2/28
  Time: 5:58 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<c:set var="basePath" value="/gyp"></c:set>

<style>
    .goods-show {
        width: 500px;
        margin: 30px auto 40px auto;
    }
    .goods-show .show-item {
        padding: 2px 20px;
        line-height: 30px;
    }
    .goods-show .show-item .show-item-label {
        display: inline-block;
    }
    .goods-show .show-item .show-item-text {
        display: inline-block;
    }
</style>

<jsp:include page="../template_header.jsp"></jsp:include>

<div class="goods-show">
    <div class="show-content">

        <div class="register-form">
            <form action="${basePath}/gonggao/add" method="post">
                <input type="hidden" name="id" value="${gonggao.id}">
                <input type="text" name="title" value="${gonggao.title}" placeholder="公告标题">
                <textarea name="content" placeholder="公告内容" rows="7" cols="77">${gonggao.content}</textarea>

                <c:if test="${user.id==null}">
                    <input type="submit" value="添加">
                </c:if>
                <c:if test="${user.id!=null}">
                    <input type="submit" value="修改">
                </c:if>
            </form>
        </div>
    </div>
</div>

<jsp:include page="../template_footer.jsp"></jsp:include>
